From 8da70699aeed0137d1df247d878f91a1320fac8c Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Fri, 28 Jan 2011 17:45:24 +0000 Subject: [PATCH] xl: fix xl cpupool-list The help screen of xl cpupool-list promises to allow a CPU pool to be named on the command line, which will then be listed only. Probably caused by a "DeMorgan brain twist" this specific CPU pool is _omitted_ instead. The patch fixes this, so single CPU pools can be explicitly listed again. Signed-off-by: Andre Przywara Acked-by: Juergen Gross Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index f1917432cd..be0145d12a 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -5446,7 +5446,7 @@ int main_cpupoollist(int argc, char **argv) printf("CPUs Sched Active Domain count\n"); for (p = 0; p < n_pools; p++) { - if (!ret && (!pool || (poolinfo[p].poolid != poolid))) { + if (!ret && (!pool || (poolinfo[p].poolid == poolid))) { name = libxl_cpupoolid_to_name(&ctx, poolinfo[p].poolid); if (!name) { fprintf(stderr, "error getting cpupool info\n"); -- 2.30.2